package com.adams.log.task;

import java.util.LinkedList;
import java.util.Queue;

import com.adams.access.db.bean.OptLog;

/**
 * 
 * 
 * File Name : OptLogQueue.java
 * 
 * @Description : 日志队列
 * @author 902990封文进
 */
public class OptLogQueue
{
	private static Queue<OptLog> queue = new LinkedList<OptLog>();

	public static void addLog(OptLog log)
	{
		OptLogTask.start();
		queue.offer(log);
	}

	public static OptLog getLog()
	{
		return queue.poll();
	}

}
